home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / X11R4 / cmds / X / ddx / sprite.X11R3 / hdr / cg1var.h < prev    next >
Encoding:
C/C++ Source or Header  |  1989-11-03  |  1.0 KB  |  43 lines

  1. /*    @(#)cg1var.h 1.1 86/07/07 SMI    */
  2.  
  3. /*
  4.  * Copyright (c) 1983 by Sun Microsystems, Inc.
  5.  */
  6.  
  7. #define    cg1_fbfrompr(pr) (((struct cg1pr *)(pr)->pr_data)->cgpr_va)
  8. /*
  9.  * Information pertaining to the Sun-1 color buffer but not to pixrects in
  10.  * general is stored in the struct pointed to by the pr_data attribute of the
  11.  * pixrect.
  12.  * One property of the color buffer not shared with all pixrects is that
  13.  * it has a color map.  The color map type and colormap contents are
  14.  * specified by the putcolormap operation.
  15.  */
  16. struct    cg1pr {
  17.     struct    cg1fb *cgpr_va;
  18.     int    cgpr_fd;
  19.     int    cgpr_planes;        /* color bit plane mask reg */
  20.     struct    pr_pos cgpr_offset;
  21. };
  22.  
  23. #define cg1_d(pr) ((struct cg1pr *)(pr)->pr_data)
  24.  
  25. extern    struct pixrectops cg1_ops;
  26.  
  27. int    cg1_rop();
  28. int    cg1_putcolormap();
  29. int    cg1_putattributes();
  30.  
  31. #ifndef KERNEL
  32. int    cg1_batchrop();
  33. int    cg1_stencil();
  34. struct    pixrect *cg1_make();
  35. int    cg1_destroy();
  36. int    cg1_get();
  37. int    cg1_put();
  38. int    cg1_vector();
  39. struct    pixrect *cg1_region();
  40. int    cg1_getcolormap();
  41. int    cg1_getattributes();
  42. #endif !KERNEL
  43.